<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title>Devicegroup List</title>
</head>
<body>
<div class="nav">
    <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
    <span class="menuButton"><g:link class="create" action="create">New Devicegroup</g:link></span>
</div>
<div class="body">
    <h1>Devicegroup List</h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <div class="list">
        <table>
            <thead>
                <tr>

                    <g:sortableColumn property="id" title="Id"/>

                    <g:sortableColumn property="notifyAction" title="Notify Action"/>

                    <g:sortableColumn property="speedUnits" title="Speed Units"/>

                    <g:sortableColumn property="geocoderMode" title="Geocoder Mode"/>

                    <g:sortableColumn property="dateCreated" title="Date Created"/>

                    <g:sortableColumn property="description" title="Description"/>

                    <th>Map Link</th>

                </tr>
            </thead>


            <tbody>

                <g:each var="devicegroup" status="i" in="${devicegroupList}">
                    <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                        <td><g:link action="show" id="${devicegroup.id}">${devicegroup.id?.encodeAsHTML()}</g:link></td>
                        <td>${devicegroup.notifyAction?.encodeAsHTML()}</td>

                        <td>${devicegroup.speedUnits?.encodeAsHTML()}</td>

                        <td>${devicegroup.geocoderMode?.encodeAsHTML()}</td>

                        <td>${devicegroup.dateCreated?.encodeAsHTML()}</td>

                        <td>${devicegroup.description?.encodeAsHTML()}</td>

                        <td><span class="button"><g:link controller="track"
					        action="trackgroup" id="${devicegroup.id}"> see Map</g:link> </span></td>

                    </tr>
                </g:each>
            </tbody>
        </table>
    </div>
    <div class="paginateButtons">
        <g:paginate total="${Devicegroup.count()}"/>
    </div>
</div>
</body>
</html>
